package com.akbar.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
// 从配置文件中读取以 smart.jwt 开头的配置项
@ConfigurationProperties(prefix = "smart.jwt")
@Data
public class JwtProperties {
    private String tokenName;

    private Long expiration;
}
